﻿<Window x:Class="UsingNonMVVMElements.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Height="481" Width="688"
        xmlns:local="clr-namespace:UsingNonMVVMElements.ViewModel"
        xmlns:AttachedBehaviors ="clr-namespace:UsingNonMVVMElements.AttachedBehaviors"
        Title="MVVM Survival Guide">
    <Window.DataContext>
        <local:MainWindowViewModel />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot">
        <TextBox Height="27" HorizontalAlignment="Left" Margin="2,1,0,0" 
                 Name="textBoxUrl" VerticalAlignment="Top" Width="611"
                 Text="{Binding UserSuggestedSourcePage}" />
        <Button Content="Go" Height="27" HorizontalAlignment="Left" 
                Margin="615,1,0,0" Name="btnGo" VerticalAlignment="Top" 
                Width="39" IsDefault="True" 
                Command="{Binding NavigateUrlCommand}" />
        <WebBrowser
            AttachedBehaviors:WebBrowserAttachedBehavior.SourcePage="{Binding SourcePage}" 
            Margin="0,34,0,0" />        
    </Grid>
</Window>


<!--First-->
<!--<Window x:Class="UsingNonMVVMElements.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Height="481" Width="688"
        xmlns:local="clr-namespace:UsingNonMVVMElements.ViewModel"
        Title="MVVM Survival Guide">
    <Grid x:Name="LayoutRoot">
        <WebBrowser Source="http://www.google.com" />
    </Grid>
</Window>-->

<!--Second application-->
<!--<Window x:Class="UsingNonMVVMElements.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Height="481" Width="688"
        xmlns:local="clr-namespace:UsingNonMVVMElements.ViewModel"
        Title="MVVM Light Application">
    <Window.DataContext>
        <local:MainWindowViewModel />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot">
        <WebBrowser Source="{Binding SourcePage}" />
    </Grid>
</Window>-->

<!--Third application -->
<!--<Window x:Class="UsingNonMVVMElements.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Height="481" Width="688"
        xmlns:local="clr-namespace:UsingNonMVVMElements.ViewModel"
        xmlns:AttachedBehaviors =
            "clr-namespace:UsingNonMVVMElements.AttachedBehaviors"
        Title="MVVM Survival Guide">
    <Window.DataContext>
        <local:MainWindowViewModel />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot">
        <WebBrowser 
            AttachedBehaviors:WebBrowserAttachedBehavior.SourcePage=
                "{Binding SourcePage}" />
    </Grid>
</Window>-->
    